home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / share / vim / vim72 / debian.vim
Encoding:
Text File  |  2009-03-19  |  1.8 KB  |  53 lines

  1. " Debian system-wide default configuration Vim
  2.  
  3. set runtimepath=~/.vim,/var/lib/vim/addons,/usr/share/vim/vimfiles,/usr/share/vim/vim72,/usr/share/vim/vimfiles/after,/var/lib/vim/addons/after,~/.vim/after
  4.  
  5. " Normally we use vim-extensions. If you want true vi-compatibility
  6. " remove change the following statements
  7. set nocompatible    " Use Vim defaults instead of 100% vi compatibility
  8. set backspace=indent,eol,start    " more powerful backspacing
  9.  
  10. " Now we set some defaults for the editor
  11. " set autoindent        " always set autoindenting on
  12. " set linebreak        " Don't wrap words by default
  13. set history=50        " keep 50 lines of command line history
  14. set ruler        " show the cursor position all the time
  15.  
  16. " modelines have historically been a source of security/resource
  17. " vulnerabilities -- disable by default, even when 'nocompatible' is set
  18. set nomodeline
  19.  
  20. " Suffixes that get lower priority when doing tab completion for filenames.
  21. " These are files we are not likely to want to edit or read.
  22. set suffixes=.bak,~,.swp,.o,.info,.aux,.log,.dvi,.bbl,.blg,.brf,.cb,.ind,.idx,.ilg,.inx,.out,.toc
  23.  
  24. " We know xterm-debian is a color terminal
  25. if &term =~ "xterm-debian" || &term =~ "xterm-xfree86"
  26.   set t_Co=16
  27.   set t_Sf=%dm
  28.   set t_Sb=%dm
  29. endif
  30.  
  31. " Some Debian-specific things
  32. if has("autocmd")
  33.   " set mail filetype for reportbug's temp files
  34.   augroup debian
  35.     au BufRead reportbug.*        set ft=mail
  36.     au BufRead reportbug-*        set ft=mail
  37.   augroup END
  38. endif
  39.  
  40. " Set paper size from /etc/papersize if available (Debian-specific)
  41. if filereadable("/etc/papersize")
  42.   let s:papersize = matchstr(readfile('/etc/papersize', '', 1), '\p*')
  43.   if strlen(s:papersize)
  44.     exe "set printoptions+=paper:" . s:papersize
  45.   endif
  46. endif
  47.  
  48. if has('gui_running')
  49.   " Make shift-insert work like in Xterm
  50.   map <S-Insert> <MiddleMouse>
  51.   map! <S-Insert> <MiddleMouse>
  52. endif
  53.